package mwt.xml.xdbforms.dbms.query;

import java.io.IOException;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.xpath.XPathExpressionException;
import mwt.xml.xdbforms.dbms.metadata.impl.TableMetadata;
import org.xml.sax.SAXException;


public interface QueryManager {
    public boolean executeNonQuery(String sql) throws SQLException;
    public boolean update(String xmlData) throws SQLException, ParserConfigurationException, SAXException, IOException, XPathExpressionException;
    public boolean insert(String xmlData) throws SQLException, ParserConfigurationException, SAXException, IOException;
    public Set<List<String>> load(String schemaName, String tableName) throws SQLException;
    public Map<String, String> getRow(String schemaName, String tableName, String pkName, String pkValue) throws SQLException;
    public boolean deleteRow(String schemaName, String tableName, String pkName, String pkValue) throws SQLException;
}
